set the visible of card field 1 to not the visible of card field 1
if the visible of card field 1 is true then
set the name of me to "Hide Pascal Source"
else set the name of me to "Show Pascal Source"
end mouseUp
-- part 2 (field)
-- low flags: 81
-- high flags: 2007
-- rect: left=12 top=26 right=298 bottom=491
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 22
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Source
-- part contents for background part 16
----- text -----
RESLIST XFCN version 1.0.1
Kevin Calhoun
ResList returns information about the resources contained in a file. It returns one line of information for each resource contained in the target file. Each line contains four items separated by commas. Item 1 will be the resource type, item 2 the resource name, item 3 the resource ID, and item 4 the size of the resource in bytes.
What follows is excerpted from the information ResList returns when the target file is the famous ResCopy XCMD stack:
XCMD,ResCopy,10000,23002
CURS,Mouse!,1000,68
XFCN,NewFileName,914,1334
XFCN,FileName,913,2040
INVOKING RESLIST
get ResList(<"targetFile">)
The targetFile parameter is optional. If it is not included, ResList returns information about the current stack. If it is included and represents the full pathname of an existing resource file, ResList returns information about that file.
Revision history:
15 March 1989 -- first release.
11 June 1989 -- Now returns empty when file has no resource fork.
-- part contents for card part 2
----- text -----
UNIT ResListUnit;
{ ResList XFCN ©1989 by the Trustees of Dartmouth College }